<script setup>
    import {onMounted,ref} from 'vue'

    const images = ref([])
    onMounted(async()=>{
        images.value =await myApi.getImagelist()
    })
    
    
</script>

<template>
    <div class="img-container">
        <img :src="`/upload/${item}`" alt="" v-for="item in images">
    </div>
</template>

<style scoped>
    .img-container{
        padding: 20px;
    }
    .img-container image{
        width: 100px;
    }
</style>

